package org.neframework.webtest.util.verify;

import java.util.Map;

import org.neframework.webtest.util.http.HttpTools;

import com.tmsps.neframework.core.utils.JsonTools;

public class VerifyTools {

	private static String baseUrl = "http://xyk.vososo.com";

	public static Map<String, Object> getVerifyInfo(String code) {
		String url = baseUrl + "/get_verify_info.htm?code=" + code;
		String body = HttpTools.get(url);

		System.err.println("--->" + body);

		Map<String, Object> map = JsonTools.jsonStrToMap(body);
		return map;
	}

	public static Map<String, Object> setVerifyInfo(String code) {
		String url = baseUrl + "/set_verify_info.htm?code=" + code;
		String body = HttpTools.get(url);
		Map<String, Object> map = JsonTools.jsonStrToMap(body);
		return map;
	}
	
}
